package com.skhu.as.service;

import java.util.List;

import com.skhu.as.dao.FaultHandlingD;
import com.skhu.as.domain.DutyHours;
import com.skhu.as.domain.FaultHandling;
import com.skhu.as.domain.ProcessStatus;
import com.skhu.as.domain.RequestType;
import com.skhu.as.domain.Requester;
import com.skhu.as.domain.Worker;

public class FaultHandlingS {

	private FaultHandlingD faultHandlingD;

	public void setFaultHandlingD(FaultHandlingD faultHandlingD) {
		this.faultHandlingD = faultHandlingD;
	}
	
	public List<Worker> getWorkerList(){
		return faultHandlingD.getWorkerList();
	}
	
	public List<DutyHours> getDutyHoursList(){
		return faultHandlingD.getDutyHoursList();
	}
	
	public List<RequestType> getRequestTypeList(){
		return faultHandlingD.getRequestTypeList();
	}
	
	public List<ProcessStatus> getProcessStatusList(){
		return faultHandlingD.getProcessStatusList();
	}
	
	public int getRequesterMaxNo(){
		return faultHandlingD.getRequesterMaxNo();
	}
	
	public int getFaultHandlingMaxNo(){
		return faultHandlingD.getFaultHandlingMaxNo();
	}
	
	public int insertRequester(Requester requester){
		return faultHandlingD.insertRequester(requester);
	}
	
	public int insertFaultHandling(FaultHandling faultHandling){
		return faultHandlingD.insertFaultHandling(faultHandling);
	}
	
	public FaultHandling getFaultHandlingByNo(int faultHandlingNo){
		return faultHandlingD.getFaultHandlingByNo(faultHandlingNo);
	}

	public Requester getRequesterByNo(int requesterNo){
		return faultHandlingD.getRequesterByNo(requesterNo);
	}

	public int updateFaultHandling(FaultHandling faultHandling){
		return faultHandlingD.updateFaultHandling(faultHandling);
	}
	
	public int updateRequester(Requester requester){
		return faultHandlingD.updateRequester(requester);
	}
	
	public int deleteRequester(int requesterNo){
		return faultHandlingD.deleteRequester(requesterNo);
	}
	
	public int deleteFaultHandling(int faultHandlingNo){
		return faultHandlingD.deleteFaultHandling(faultHandlingNo);	
	}
}	
